package com.cn.stepLock.executeLambda;

import java.util.function.Consumer;

/**
 * @author Aaron
 * @desc
 * @createTime 2022-02-25 6:10
 * @since
 */
public class ConsumerLambda<T,U> extends BaseConsumer<T,U>{

    private Consumer<T> consumer;

    public ConsumerLambda(Consumer<T> consumer,T left) {
        this.consumer = consumer;
        this.left = left;
    }

    public void execute(){
        this.consumer.accept(left);
    }
}
